package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.Goods;
import com.cskaoyan.mall.model.Type;
import com.cskaoyan.mall.model.bo.*;
import com.cskaoyan.mall.model.vo.MsgReplyVO;
import com.cskaoyan.mall.model.vo.MsgVO;

import java.util.List;
import java.util.Map;

public interface GoodsDao {
    List<Type> getType();

    List<Goods> getGoodsByType(String typeId);

    void addGoods(Goods goods);

    int getLastId();

    void addSpecs(List<AddSpecBO> specList, int goodsId);

    int addType(AddTypeBO addTypeBO);

    int deleteType(String id);

    Map<String, Object> getGoodsInfo(String id);

    int addSpec(AddSpecsBO addSpecsBO);

    int updateGoods(Goods goods);

    int updateSpecs(List<UpdateSpecBO> specList, Integer id);

    int deleteSpec(DeleteSpecBO deleteSpecBO);

    int deleteGoods(String id);

    List<MsgVO> noReplyMsg();

    List<MsgReplyVO> repliedMsg();

    int reply(ReplyBO replyBO);
}
